#pragma once

#include <QtCore/QString>
#include <QtGui/QImage>

#include "utils.h"
#include "CImage.h"

/*----------------------------------------------------------------------------*/

typedef std::vector< CImage* > ImageV;

/*----------------------------------------------------------------------------*/

class ImageLoader
{
/*----------------------------------------------------------------------------*/

public:

/*----------------------------------------------------------------------------*/

	ImageLoader();

	~ImageLoader();

	void LoadBmpFilesToImages( const QString& _trainFilesDir );

	ImageV& GetImages();

	CImage* CreateImageFromBmp( QImage& _image, int _activeOutput = 0 );

/*----------------------------------------------------------------------------*/

private:

/*----------------------------------------------------------------------------*/

	QStringList BrowseFiles( const QString& _trainFilesDir );

	CImage* CreateImageFromBmp( QString& _fileName );	

/*----------------------------------------------------------------------------*/

	ImageV m_imageArray;

/*----------------------------------------------------------------------------*/

};

/*----------------------------------------------------------------------------*/
